Carbon


TEStylePaste

Header: TextEdit.h Carbon status: Not Recommended

Pastes text and its associated character attribute information from the desk scrap into the edit structure’s text at the insertion point—if the current selection range is an insertion point—or it replaces the current selection range.

void TEStylePaste (
    TEHandle hTE
);
Parameter descriptions
hTE

A handle to the edit structure into which the text is to be pasted.

DISCUSSION

When you call TEStylePaste and there is no character attribute information associated with text in the desk scrap, TEStylePaste first checks the null scrap. If the null scrap contains character attribute information, this is used. If the null scrap is empty, TEStylePaste gives the text the same attributes as those of the first character of the replaced selection range or that of the preceding character if the selection is an insertion point.

For a monostyled edit structure, TEStylePaste pastes the text only; there is no associated character attribute information because all the text uses the same attributes.

AVAILABILITY

Not recommended in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)